package main

import (
	"fmt"
)

func main() {
	tryRecover()
}

func tryRecover() {
	defer func() {
		r := recover()
		if err, ok := r.(error); ok {
			fmt.Println("::", err)
		} else {
			panic(err)
		}
	}()
	b := 0
	a := 100 / b
	fmt.Println(a)
	fmt.Println("end")
}
